document.getElementById("saveToLocal").addEventListener("click", () => {
    let path = document.getElementById("path").value;
    let content = document.getElementById("content").value;
    if (path !== "" && content !== "") {
        window.api.saveToLocal(path, content);
    } else {
        alert("请填写保存路径和文本内容");
    }
});
document.getElementById("changeStyle").addEventListener("click", async () => {
    const darkMode = await window.api.toggle()
    console.log(darkMode)
});
